package com.recycle.pojo;

import java.util.Date;

public class UserInfo {
    private Integer id;

    private String openId;

    private Date createdAt;

    private Date updatedAt;

    private Date loginTime;

    private Integer points;
    private String phoneNumber;


    public UserInfo(Integer id, String openId, Date createdAt, Date updatedAt, Date loginTime, Integer points,String phoneNumber) {
        this.id = id;
        this.openId = openId;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.loginTime = loginTime;
        this.points = points;
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public UserInfo() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId == null ? null : openId.trim();
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", openId=").append(openId);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append(", loginTime=").append(loginTime);
        sb.append(", points=").append(points);
        sb.append("]");
        return sb.toString();
    }
}